Running with the X11 backend is no longer as easy as not specifying
wayland, so expose mutter's --x11 option to allow enforcing the X11
backend for testing.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1396
args.append('--nested')
else:
args.append('--display-server')
+ elif options.x11:
+ args.append('--x11')
return subprocess.Popen(args, env=env)
help="Run as a Wayland compositor")
parser.add_option("-n", "--nested", action="store_true",
help="Run as a Wayland nested compositor")
+parser.add_option("-x", "--x11", action="store_true",
+ help="Run as an X11 compositor")
options, args = parser.parse_args()